home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-02-28 | 988 b | 78 lines | [TEXT/ttxt] |
- (
- open TitleContainer path:"dirimp/dirimp.sxt"
- )
-
-
- module DirectorTitle
- uses ScriptX
- uses Scratch
-
- uses ScorePlayer
-
- exports tc
- exports sp
- exports w
- end
-
-
-
- in module DirectorTitle
-
- global sp := undefined
- global w
- global tc
-
- tc := new TitleContainer path:"demo.sxt"
-
-
-
-
- module directorTransport
- uses ScriptX
- uses DirectorImporter
- uses ScorePlayer
- uses DirectorTitle
- end
-
-
-
- in module directorTransport
-
-
- -- Import the Director movie
- sp := ImportDirector container:tc.storageContainer
-
-
-
- in module DirectorTitle
-
- function startTitle -> (
- stop sp
- gotobegin sp
- play sp
- )
-
- gotobegin sp
-
- -- Create a ScriptX window
- w := new Window boundary:(new rect y1:40 x2:sp.targetSpace.width y2:(40 + sp.targetSpace.height))
-
- -- Append the ScorePlayer's space to the window
- append w sp.targetSpace
-
- -- Show the window
- show w
-
- -- Save animation before playing
-
- append tc (getModule @DirectorTitle)
- tc.startupAction := (self ->
- (
- startTitle()
- )
- )
-
-
- close tc
-
-